Ext.define('Ssimgres.view.administradores.NuevoAdministradorView', {
    extend: 'Ext.window.Window',
    alias: 'widget.nuevoAdministradorView',
    title: 'Nuevo administrador',
    frame: true,
    modal: true,
    width: 400,
    bodyPadding: '10',
    items: [{
            xtype: 'form',
            fieldDefaults: {
                labelWidth: 150,
                anchor: '100%'
            },
            items: [{
                    xtype: 'textfield',
                    allowBlank: false,
                    fieldLabel: 'Nombre completo',
                    name: 'nombre'
                }, {
                    xtype: 'textfield',
                    allowBlank: false,
                    fieldLabel: 'Nombre usuario',
                    name: 'usuario'
                }, {
                    xtype: 'textfield',
                    allowBlank: false,
                    fieldLabel: 'Correo',
                    name: 'correo',
                    vtype: 'email'
                }, {
                    xtype: 'textfield',
                    allowBlank: false,
                    fieldLabel: 'Contraseña',
                    name: 'clave',
                    inputType: 'password',
                    minLength: 6
                }, {
                    xtype: 'textfield',
                    allowBlank: false,
                    fieldLabel: 'Confirmar contraseña',
                    name: 'clave_confirmada',
                    inputType: 'password',
                    minLength: 6
                }]
        }],
    buttons: [{
            text: 'Guardar',
            action: 'btnGuardar'
        }, {
            text: 'Cancelar',
            scope: this,
            action: 'btnCancelar'
        }]
});
